//
//  Commodity.h
//  FMDB_Demo_Login
//
//  Created by libertyair on 15/5/29.
//  Copyright (c) 2015年 libertyair. All rights reserved.
//  商品模型

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface Commodity : NSObject

@property (nonatomic,copy) NSString *name;     //商品名
@property (nonatomic,assign) NSInteger number; //货号
@property (nonatomic,assign) CGFloat sPrice;   //售价
@property (nonatomic,assign) CGFloat iPrice;   //进价
@property (nonatomic,copy) NSString *category; //商品分类

- (instancetype)initWithName:(NSString *)name number:(NSInteger)number sPrice:(CGFloat)sPrice iPrice:(CGFloat)iPrice category:(NSString *)category;
+ (instancetype)commodityWithName:(NSString *)name number:(NSInteger)number sPrice:(CGFloat)sPrice iPrice:(CGFloat)iPrice category:(NSString *)category;

@end
